import {request,requestMock} from '@/utils/http'

export const getCategoryListRequest = ()=>{
  return request.get('/api/product/getBaseCategoryList')
}

//请求banner的数据
export const getBannerListRequest = ()=>{
  return requestMock.get('/banner')
}

//请求floor的数据
export const getFloorListRequest=()=>{
  return requestMock.get('/floor')
}

//请求search页的数据
export const requestSearchList = (params)=>{
  return request.post('/api/list',params)
}

//请求detail页的数据
export const requestdetailList = (skuId)=>{
  return request.get(`/api/item/${ skuId }`)
}